
(function () { 
	Codestrong.ui.CreateCenterMain = function () {

//var LectureMain = function() {
	var aps='';
	if(Ti.Platform.osname== 'android') {
  		 Titanium.include('../globals.js');
  		// Titanium.include('../cs/cs.js');
  		// Titanium.include('../cs/ui.js');
  		// Titanium.include('../windows/EventGarbageCollection.js');
  		 aps='../';
    }
    else {
   		  Titanium.include('globals.js');
   		//  Titanium.include('cs/cs.js');
   		//  Titanium.include('cs/ui.js');
   		  //Titanium.include('windows/EventGarbageCollection.js');
    }
    /////////////////////EVENT//////////
	var data = []; 
	var response;
    ////////////////////////////////////FUNTION///////////////////////
    ////////////////////////////////////////////////////////////
        
    var win = Titanium.UI.createWindow({
            id: 'CenterMain',
            title: 'TRUNG TÂM',
            backgroundColor: '#FFF',
            barColor: '#414444',
            fullscreen: false
           
        });
       
    var egc = new globals.EventGarbageCollection(win);
	
	 egc.addEventListener('back_CenterMain', function () {
    	Codestrong.navGroup.close(win, {
                        animated: true
        });
	});
    
  
	////////////main_header///////////////////////////
	 var databutton_right=[
    	//{Id:1,Image:aps+'images/list_bullets.png',Image_:aps+'images/list_bullets_.png',tag:'Category'},
	    {Id:2,Image:aps+'images/account.png',Image_:aps+'images/account_.png',tag:'Login'},
	    //{Id:3,Image:aps+'images/search.png',Image_:aps+'images/search_.png',tag:'Search'},
	    
	]
	var main_header=require('controls/main_header').main_header({
	 		backgroundImage: aps+'images/panel3.png',
	 		headertext:'Thầy trò Mobile: Trung tâm',
		    left: 0,
		    top: 0,
		    height:65,
		    width: Globals.platformWidth,
		    touchEnabled: true		,
		    databutton_right:databutton_right,
		    imback:   aps+'images/back.png',
		    imback_:   aps+'images/back_.png',
		    idWinParent:'CenterMain',
    })

	win.add(main_header);
  
        
        
	
	///////////////////////////////////////////////////////////
	ScrollViewMain = Ti.UI.createScrollView({
		top:main_header.height
	});
	
	
	
	
	win.add(ScrollViewMain);
	
	win.addEventListener('open', function(e)
	{
	   
	});					
	
	
	//return win;
//};

//module.exports = LectureMain;




 return win;
       
    };
})();